package com.mentaleye.service;

import java.util.List;

import com.mentaleye.bean.DormitorysBean;
import com.mentaleye.util.CommonPage;

public interface DormitoryService {
		/**
		 * 
		 * @param dormitoryBean controller传bean对象
		 * @return  添加操作结果，成功为1，失败为0
		 */
		public boolean addDormitory(DormitorysBean dormitoryBean);
		/**
		 * 
		 * @param dormitoryBean controller传bean对象
		 * @return 修改操作结果，成功为1，失败为0
		 */
		public boolean editDormitory(DormitorysBean dormitoryBean);
		/**
		 * 
		 * @param dorId  传入宿舍id主键
		 * @return 删除操作结果，成功为1，失败为0
		 */
		public boolean removeDormitory(List<Integer> dorId);
		/**
		 * 
		 * @return 查询所有宿舍信息
		 */
		public List<DormitorysBean> getAllDirmitory();
		
		public void getDormitoryByPage(CommonPage commonPage);
		
		public DormitorysBean getDormitoryById(Integer dorId);
		/**
		 * 查询可用宿舍
		 * @return
		 */
		public List<DormitorysBean> getDormitoryWithRest();
		
}
